#!/bin/bash

echo "测试RocketMQ连接..."

echo "1. 测试NameServer连接 (端口9876)..."
nc -zv 192.168.211.139 9876

echo "2. 测试Broker连接 (端口10911)..."
nc -zv 192.168.211.139 10911

echo "3. 测试管理控制台 (端口8081)..."
nc -zv 192.168.211.139 8081

echo "4. 检查Docker容器状态..."
docker-compose ps

echo "5. 检查网络配置..."
docker network ls | grep rmq
docker network inspect rmq

echo "连接测试完成！"

